<?php

class ectools_task {

    public function post_install() {
        logger::info('Initial ectools');
        kernel::single('base_initial', 'ectools')->init();
        
        logger::info('Initial Regions');
        kernel::single('ectools_regions_mainland')->install();
        
        if (! is_dir(DATA_DIR . '/misc')) {
            utils::mkdir_p(DATA_DIR . '/misc');
        }
        utils::cp(app::get('ectools')->res_dir . '/js/region_data.js', DATA_DIR . '/misc/region_data.js');
    }
}//End Class
